package PLCSymbolAndScope.PLCSymbols;

import java.util.ArrayList;

public class PLCBaseFUNDeclSymbol extends PLCISTypeDeclType {
    //直接返回值类型
    public int returnTypeId;

    //返回值声明标识符
    public ArrayList<PLCVariable> returnVars = new ArrayList<>();

    //入参符号
    public ArrayList<PLCVariable> inVars = new ArrayList<>();

    //出入参符号
    public ArrayList<PLCVariable> inOutVars = new ArrayList<>();

    public PLCBaseFUNDeclSymbol(){
        super();
    }
    public PLCBaseFUNDeclSymbol(String name, int rowNum){
        super(name, rowNum);
    }

    public void addReturnVar(PLCVariable returnVar){
        this.returnVars.add(returnVar);
    }

    public void addInVar(PLCVariable inVar){
        this.inVars.add(inVar);
    }

    public void addInOutVar(PLCVariable inOutVar){
        this.inOutVars.add(inOutVar);
    }

}
